<template>
  <div class="login">
    <div>
      <el-button @click="runTo('snake')" type="success">贪吃蛇</el-button>
      <el-button @click="runTo('flappyBird')" type="success">FlappyBird</el-button>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'Login',
    data() {
      return {
        form: {
          userId: '',
          userPassword: ''
        }
      }
    },
    methods: {
      runTo(formName) {
        this.$router.push(formName)
      }
    }
  }
</script>

<style>
  .login {
    width: 260px;
    margin: 0 auto;
    margin-top: 20%;
  }
</style>
